package com.example.demo.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 模态框字页面
 * 
 * @author Administrator
 *
 */
@Controller
public class ModelContoller {
	/**
	 * 模态框父页面
	 * 
	 * @param request
	 * @param response
	 * @param model
	 * @return
	 */
	@RequestMapping("/modal/index")
	public String indexHome(HttpServletRequest request, HttpServletResponse response, Model model) {
		return "moparent";

	}

	/**
	 * 模态框字页面
	 * 
	 * @param request
	 * @param response
	 * @param model
	 * @return
	 */
	@RequestMapping("/modal/son")
	public String modalSon(HttpServletRequest request, HttpServletResponse response, Model model) {

		model.addAttribute("pageName", "模态框JSP_name");//
		// 通道
		return "moson";

	}
}
